package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsAbilityInfo = "cms_ability_info"

func init() {
	var r = &CmsAbilityInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsAbilityInfo struct {
	AbilityId    int    `json:"abilityId" form:"abilityId" column:"ability_id" primary:"true" modify:"false"`
	AbilityName  string `json:"abilityName" form:"abilityName" column:"ability_name" modify:"true"`
	GradePart    int    `form:"gradePart" column:"grade_part" modify:"true" json:"gradePart"`
	Subject      int    `json:"subject" form:"subject" column:"subject" modify:"true"`
	Icon         string `json:"icon" form:"icon" column:"icon" modify:"true"`
	ParentId     int    `form:"parentId" column:"parent_id" modify:"true" json:"parentId"`
	Status       int    `column:"status" modify:"true" json:"status" form:"status"`
	OnlineStatus int    `json:"onlineStatus" form:"onlineStatus" column:"online_status" modify:"true"`
	CreateTime   string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime   string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *CmsAbilityInfo) Name() string {
	return RecordNameCmsAbilityInfo
}
